$(document).ready(function() {
	
	//开场第一屏动画开始
	
	setTimeout(function() {
		
		$(".zss_yimeng .zss_title1").addClass("zss_ymscal");
		
		$(".zss_whzz").delay(300).animate({
					
			top:0
			
		}, 1000, 'easeOutQuart')
		
	}, 300);
	
	//开场第一屏动画结束
	
	$(".dowebok").fullpage({

		slidesColor: ['white','white', 'white','white'],

		verticalCentered: true,

		anchors: ['page1','page2', 'page3','page4'],

		menu: '#zss_nav',

		scrollingSpeed: 600,

		easing: "easeOutCubic",

		navigation: true,

		css3: true,

		afterLoad: function(anchorLink, index) {
			
			if(index == '1') {

				$(".zss_yimeng .zss_title1").addClass("zss_ymscal");
				
				$(".zss_whzz1").delay(300).animate({
					
					top:'0'
					
				}, 1000, 'easeOutQuart')

			}


			if(index == 2) {

				setTimeout(function(){
					$('.zss_sec4ymimgbox img,.zss_sec4ymimgbox p').addClass("zss_sec4ymimgboxplus")
				},200)
				
			}
			
			if(index == 3) {

				
				$('.section3 .zss_sec5img,.section3 .zss_sec5img2').animate({
					
					left: '0'

				}, 1000, 'easeOutQuart');
				

			}

			if(index == 4) {

				$(".zss_animate2").fadeIn(1000)
				
			}
		},

		onLeave: function(index, direction) {
			
			if(index == '1') {

				$(".zss_yimeng .zss_title1").removeClass("zss_ymscal");
				
				$(".zss_whzz1").delay(500).animate({
					
					top:'-100rem'
					
				}, 1000, 'easeOutQuart')

			}

			if(index == '2') {

				setTimeout(function(){
					$('.zss_sec4ymimgbox img,.zss_sec4ymimgbox p').removeClass("zss_sec4ymimgboxplus")
				},400)
			
			}
			
			if(index == '3') {

				
				$('.section3 .zss_sec5img').delay(500).animate({
					
					left: '-100rem'

				}, 1000, 'easeOutQuart');
				
				$('.section3 .zss_sec5img2').delay(500).animate({
					
					left: '100rem'

				}, 1000, 'easeOutQuart');
				

			}

			if(index == '4') {

				$(".zss_animate2").fadeOut(1000)
			}
		}

	});

	

	
});